/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * MenuPrincipal.java
 *
 * Created on 21/09/2009, 10:35:14
 */

package JPaneis;

import Conector.Conector;
import siii.MenuPadrao;

public class MenuPrincipal extends javax.swing.JPanel {

    private MenuPadrao menuPadrao;
    private Conector conector;
    /** Creates new form MenuPrincipal */
    public MenuPrincipal(MenuPadrao m, Conector con) {
        this.menuPadrao = m;
        this.conector = con;
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jButtonPesca = new javax.swing.JButton();
        jButtonComprarPeixePiscina = new javax.swing.JButton();
        jLabelFoto = new javax.swing.JLabel();
        jLabelInfo = new javax.swing.JLabel();
        jLabelNomePesqueiro = new javax.swing.JLabel();

        setPreferredSize(new java.awt.Dimension(1000, 500));

        jButtonPesca.setFont(new java.awt.Font("Tahoma", 0, 18));
        jButtonPesca.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/fishing-64x64.png"))); // NOI18N
        jButtonPesca.setText("     Pesca");
        jButtonPesca.setBorder(null);
        jButtonPesca.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                mouseClickedPescahandler(evt);
            }
        });

        jButtonComprarPeixePiscina.setFont(new java.awt.Font("Tahoma", 0, 18));
        jButtonComprarPeixePiscina.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/fish-48x48.png"))); // NOI18N
        jButtonComprarPeixePiscina.setText("Comprar Peixe da Piscina");
        jButtonComprarPeixePiscina.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                mouseClickedComprarPeixePiscinaHandler(evt);
            }
        });

        jLabelFoto.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Imagem1.jpg"))); // NOI18N
        jLabelFoto.setPreferredSize(new java.awt.Dimension(996, 181));

        jLabelInfo.setFont(new java.awt.Font("Coronet", 0, 14));
        jLabelInfo.setForeground(new java.awt.Color(102, 153, 0));
        jLabelInfo.setText("Sistema de Automação de Pesqueiro");

        jLabelNomePesqueiro.setFont(new java.awt.Font("French Script MT", 1, 36));
        jLabelNomePesqueiro.setText("Pesqueiro do Marco");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 1000, Short.MAX_VALUE)
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createSequentialGroup()
                            .addGap(121, 121, 121)
                            .addComponent(jButtonComprarPeixePiscina, javax.swing.GroupLayout.PREFERRED_SIZE, 290, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(99, 99, 99)
                            .addComponent(jButtonPesca, javax.swing.GroupLayout.PREFERRED_SIZE, 290, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addComponent(jLabelFoto, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 998, Short.MAX_VALUE)
                        .addGroup(layout.createSequentialGroup()
                            .addGap(330, 330, 330)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabelNomePesqueiro)
                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 183, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabelInfo)))))
                    .addContainerGap()))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 500, Short.MAX_VALUE)
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabelNomePesqueiro)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jLabelInfo)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jLabelFoto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(65, 65, 65)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButtonComprarPeixePiscina, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButtonPesca, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(85, Short.MAX_VALUE)))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void mouseClickedComprarPeixePiscinaHandler(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_mouseClickedComprarPeixePiscinaHandler
        // TODO add your handling code here:
        menuPadrao.trocaPanel2(menuPadrao.getMenuComprarPeixePiscina());
        
    }//GEN-LAST:event_mouseClickedComprarPeixePiscinaHandler

    private void mouseClickedPescahandler(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_mouseClickedPescahandler
        // TODO add your handling code here:
        menuPadrao.trocaPanel2(menuPadrao.getMenuServicoPesca());
        
    }//GEN-LAST:event_mouseClickedPescahandler


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButtonComprarPeixePiscina;
    private javax.swing.JButton jButtonPesca;
    private javax.swing.JLabel jLabelFoto;
    private javax.swing.JLabel jLabelInfo;
    private javax.swing.JLabel jLabelNomePesqueiro;
    // End of variables declaration//GEN-END:variables

}
